package com.ship.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ShipSaveDto {

    private Long id;

    @NotNull
    @Pattern(regexp = ".{2,10}")
    private String num;

    @NotNull
    @Pattern(regexp = ".{2,10}")
    private String name;

    @NotNull
    @Pattern(regexp = "[0123]{0,1}")
    private String status;

    @NotNull
    @Pattern(regexp = ".{1,30}")
    private String belong;
}
